package com.ld.control.business.task.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ld.control.business.task.model.TaskExampleModel;
import com.ld.control.business.task.vo.req.TaskExampleSearchReqVo;
import com.ld.control.business.task.vo.resp.TaskExampleRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 任务实例表 Mapper 接口
 * </p>
 *
 * @author wangfeng
 * @since 2024-05-14
 */
public interface TaskExampleMapper extends BaseMapper<TaskExampleModel> {

    IPage<TaskExampleRespVo> selectPageList(IPage<TaskExampleRespVo> iPage, @Param("reqVo") TaskExampleSearchReqVo reqVo);

    IPage<TaskExampleRespVo> selectPageListByStatusList(IPage<TaskExampleRespVo> iPage, @Param("statusList") List<Integer> statusList);


    /**
     * 查询某个任务实例预估时间
     * @param id
     * @return
     */
    Integer selectTaskTaskEstimatedTimeById(@Param("id") Long id);

    /**
     * 查询数据样品管理页面的任务实例下拉框
     * @return
     */
    List<TaskExampleRespVo> selectTaskDataSelectList();
}
